var person={
    weight:56,
    height:180,
    name:'zahngsan',
}
// 对象字面量
var obj={
    name:'zhangsan',
    age:12,
    sayName:function(){
        console.log('my name is',this.name);
    }
}
// console.log(obj);
console.log(obj.sayName);
obj.sayName();
// 构造函数创建
var obj1=new Object();
obj1.name='lisi';
obj1.age=18;
obj1.sayAge=function(){
    console.log('my age is',this.age);
}
console.log(obj1);
obj1.sayAge();
console.log(obj1.sayAge);